package com.bwie.shop.controller;

import com.bwie.common.domain.OperationCategory;
import com.bwie.common.result.Result;
import com.bwie.shop.service.OperationCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 运营类别控制层
 *
 * @author <a href="mailto:3364114353@qq.com">liuwenliang</a>
 * @version 1.0
 * @description: 运营类别控制层
 * @date 2025/9/9 17:00
 */
@RestController
@RequestMapping("/type")
@CrossOrigin
public class OperationCategoryController {

    @Autowired
    private OperationCategoryService operationCategoryService;


    @GetMapping("/getOperationCategoryList")
    public Result<List<OperationCategory>> list () {
        List<OperationCategory> list = operationCategoryService.getOperationCategoryList();
        return Result.success(list);
    }
}
